import React from 'react';
import { Switch, Route } from 'react-router-dom';
import SessionTrackList from './SessionTrackList';
import SessionTrack from './SessionTrack';
import SessionCapture from './SessionCapture';
import SessionVideo from './SessionVideo';

export const SessionTrackManagement = ({ match }) => (
  <Switch>
    <Route path={`${match.url}`} exact component={SessionTrackList} />
    <Route path={`${match.url}/:id`} exact component={SessionTrack} />
    <Route path={`${match.url}/:id/capture`} component={SessionCapture} />
    <Route path={`${match.url}/:id/video`} component={SessionVideo} />
  </Switch>
);
